/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.malva.dbpop;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.Iterator;
import org.malva.dbpop.enums.DateType;

/**
 *
 * @author vramirez
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        
        AutoNum at=new AutoNum(55, 10);
        ArrayList<AbstractDBPopType> ab=new ArrayList<AbstractDBPopType>();
        RandomNum rn=new RandomNum(0, 9);
        Calendar cal1=Calendar.getInstance();
        cal1.set(2009, 03, 15);
        Calendar cal2=Calendar.getInstance();
        cal2.set(2009, 03,25);
        RandomDate rd=new RandomDate(cal1,cal2,DateType.DATE);
        ab.add(rd);
        ab.add(at);
        ab.add(rn);
        for (int i = 0; i < 10; i++) {
            Iterator iter=ab.iterator();
            while(iter.hasNext()){
                System.out.println(((AbstractDBPopType)iter.next()).next());
            }

            
        }
    }

}
